home *** CD-ROM | disk | FTP | other *** search
- program ibbsdemo;
- {$M $C000,0,100000}
-
- uses
- ibbs;
-
- function upstr(s1: string): string;
- var
- s2 : string;
- i1: integer;
- begin
- s2:='';
- for i1:=1 to length(s1) do s2:=s2+upcase(s1[i1]);
- upstr:=s2;
- end;
-
- begin
- if (paramcount<1) or ((upstr(paramstr(1))<>'IN') and (upstr(paramstr(1))<>'OUT') and (upstr(paramstr(1))<>'HUB')) then
- begin
- writeln(#13#10,'InterBBS Demo Program');
- if paramcount<1 then
- writeln(^G^G'■ ERROR: Not enough Parameters!') else writeln(^G^G'■ ERROR: Invalid Parameters!');
- writeln('■ Usage: IBBSDEMO IN (Process incoming *.MSG files)');
- writeln('■ Usage: IBBSDEMO OUT (Process outgoing *.MSG files, send to');
- writeln(' "To Address" in IBBS.CFG)');
- writeln('■ Usage: IBBSDEMO HUB (Process outgoing *.MSG files, send to all');
- writeln(' "To Addresses" in ROUTE.CFG)');
- writeln;
- halt(1);
- end;
- if upstr(paramstr(1)) = 'IN' then
- begin
- get_ibbs_incoming;
- halt(0);
- end;
- if upstr(paramstr(1)) = 'OUT' then
- begin
- make_ibbs_outgoing(convert_address(to_system_address),true);
- halt(0);
- end;
- if upstr(paramstr(1)) = 'HUB' then
- begin
- make_multi_ibbs_outgoing;
- halt(0);
- end;
- end.